package impl

import (
	"context"

	"gitee.com/LangHuaHuachihua/blog-go/apps/comment"
)

func (i *Impl) CreateCommit(ctx context.Context, c *comment.CreateCommitRequest) (*comment.Commit, error) {
	commit, err := i.Save(ctx, c)
	if err != nil {
		return nil, err
	}

	return commit, nil
}
